package com.wrox;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener implements HttpSessionListener{

	@Override
	public void sessionCreated(HttpSessionEvent e) {
		SessionRegistry.addSession(e.getSession());
		
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent e) {
		SessionRegistry.removeSession(e.getSession());
		
	}

}
